package net.uhuijia.exceptions;

import net.uhuijia.vo.ResultMapVo;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestControllerAdvice;
/*
@RestControllerAdvice*/
public class UserExceptionHandler {


    /**
     * 业务异常.
     *
     * @param e the e
     *
     * @return the wrapper
     */
  /*  @ExceptionHandler(BusinessException.class)
    @ResponseStatus(HttpStatus.OK)
    @ResponseBody
    public ResultMapVo<?> businessException(BusinessException e) {
        return ResultMapVo.wrap(e.getCode(), e.getMessage());
    }*/
}
